import service from '@/utils/request'
// @Tags A轮播
// @Summary 创建轮播
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A轮播 true "创建轮播"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lunbo/createA轮播 [post]
export const createA轮播 = (data) => {
  return service({
    url: '/lunbo/createA轮播',
    method: 'post',
    data
  })
}

// @Tags A轮播
// @Summary 删除轮播
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A轮播 true "删除轮播"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lunbo/deleteA轮播 [delete]
export const deleteA轮播 = (params) => {
  return service({
    url: '/lunbo/deleteA轮播',
    method: 'delete',
    params
  })
}

// @Tags A轮播
// @Summary 批量删除轮播
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除轮播"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lunbo/deleteA轮播 [delete]
export const deleteA轮播ByIds = (params) => {
  return service({
    url: '/lunbo/deleteA轮播ByIds',
    method: 'delete',
    params
  })
}

// @Tags A轮播
// @Summary 更新轮播
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.A轮播 true "更新轮播"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lunbo/updateA轮播 [put]
export const updateA轮播 = (data) => {
  return service({
    url: '/lunbo/updateA轮播',
    method: 'put',
    data
  })
}

// @Tags A轮播
// @Summary 用id查询轮播
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.A轮播 true "用id查询轮播"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lunbo/findA轮播 [get]
export const findA轮播 = (params) => {
  return service({
    url: '/lunbo/findA轮播',
    method: 'get',
    params
  })
}

// @Tags A轮播
// @Summary 分页获取轮播列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取轮播列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lunbo/getA轮播List [get]
export const getA轮播List = (params) => {
  return service({
    url: '/lunbo/getA轮播List',
    method: 'get',
    params
  })
}
// @Tags A轮播
// @Summary 不需要鉴权的轮播接口
// @accept application/json
// @Produce application/json
// @Param data query request.A轮播Search true "分页获取轮播列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lunbo/getA轮播Public [get]
export const getA轮播Public = () => {
  return service({
    url: '/lunbo/getA轮播Public',
    method: 'get',
  })
}